#include<iostream>
using namespace std;
class draw {
private:
	int height;
public:
	int setheight(int h) {
		this->height = h;
		return 0;
	}
	int maketriangle() {
		height = this->height;
			for (int i = 1;i <= height;i++) {
				for (int t = i; t < 10; t++) { 
					cout << " ";
				}
				for (int p = 0;p < 2 * (i-1) + 1;p++) {
					cout << "*";
				}
				cout << endl;
			}
		return 0;
	}
	int makeparallelogram(){
		height = this->height;
		for (int i = 1;i <= height;i++) {
			for (int t = i; t < 10; t++) {
				cout << " ";
			}
			cout << "********" << endl;
		}
		return 0;
	}
	int makerectangle() {
		height = this->height;
		for (int i = 1;i <= height;i++) {
			cout << "      ";
			cout << "********" << endl;
		}
		return 0;
	}
	int makesqure() {
		height = this->height;
		for (int i = 1;i <= height;i++) {
			cout << "      ";
			for (int i = 1;i <= height;i++) {
				cout << "* ";
			}
			cout << endl;
		}
		return 0;
	}
};
int main() {
	class draw shape;
	shape.setheight(5);
	shape.maketriangle();
	shape.makeparallelogram();
	shape.makerectangle();
	shape.makesqure();
}